<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String contextPath = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
<link rel="stylesheet" href="<%=contextPath%>/openSources/layui/css/layui.css">
<style type="text/css">
	.layui-table-cell .layui-form-checkbox[lay-skin=primary] {
		top: 5px;
	}
</style>
</head>
<body class="layui-layout-body">
<input id="contextPath" value="<%=contextPath%>" style="display: none"/>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">EWork 后台管理</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item"><a href="">控制台</a></li>
      <li class="layui-nav-item"><a href="">商品管理</a></li>
      <li class="layui-nav-item"><a href="">用户</a></li>
      <li class="layui-nav-item">
        <a href="javascript:;">其它系统</a>
        <dl class="layui-nav-child">
          <shiro:hasRole name="admin">
          	<dd><a href="<%=contextPath%>/druid/index.html" target="_druid">Druid监控</a></dd>
          </shiro:hasRole>
          <dd><a href="">邮件管理</a></dd>
          <dd><a href="">消息管理</a></dd>
          <dd><a href="">授权管理</a></dd>
        </dl>
      </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <shiro:principal/>
        </a>
        <dl class="layui-nav-child">
          <dd><a href="">基本资料</a></dd>
          <dd><a href="">安全设置</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a href="<%=contextPath%>/logout">退出</a></li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="leftSide" id="leftSide">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">所有商品</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" data-url="aaaa" data-id="one">列表一</a></dd>
            <dd><a href="javascript:;" data-id="two">列表二</a></dd>
            <dd><a href="javascript:;" data-id="three">列表三</a></dd>
            <dd><a href="">超链接</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">解决方案</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;">列表一</a></dd>
            <dd><a href="javascript:;">列表二</a></dd>
            <dd><a href="">超链接</a></dd>
          </dl>
        </li>
        <shiro:hasRole name="admin">
        <li class="layui-nav-item">
          <a href="javascript:;">权限管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" data-url="<%=contextPath%>/auth/user" data-id="user">用户管理</a></dd>
            <dd><a href="javascript:;" data-url="<%=contextPath%>/auth/role" data-id="role">角色管理</a></dd>
            <dd><a href="javascript:;" data-url="<%=contextPath%>/auth/permission" data-id="permission">权限管理</a></dd>
          </dl>
        </li>
        </shiro:hasRole>
        <li class="layui-nav-item">
          <a href="javascript:;">系统管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" data-url="<%=contextPath%>/system/menu" data-id="menu">菜单管理</a></dd>
            <dd><a href="javascript:;" data-url="<%=contextPath%>/system/config" data-id="config">配置管理</a></dd>
            <dd><a href="javascript:;" data-url="<%=contextPath%>/system/dataDic" data-id="dataDic">数据字典</a></dd>
          </dl>
        </li>
        
        <shiro:hasRole name="admin">
        	<li class="layui-nav-item">
          <a href="javascript:;">其它</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" data-url="<%=contextPath%>/other/loginTotal" data-id="loginTotal">在线用户统计</a></dd>
            
          </dl>
        </li>
        </shiro:hasRole>
        
      </ul>
    </div>
  </div>
  
  <div class="layui-body" id="main">
  
  	<div class="layui-tab layui-tab-brief" lay-allowClose="true" lay-filter="mainTab">
  <ul class="layui-tab-title">
    <li class="layui-this">首页</li>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">首页</div>
  </div>
</div>
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © szcatic.com 
  </div>
</div>
<script type="text/javascript" src="<%=contextPath%>/openSources/layui/layui.js"></script>
<script type="text/javascript" src="<%=contextPath%>/js/common.js"></script>
<script type="text/javascript" src="<%=contextPath%>/js/home.js"></script>
</body>
</html>